import request from "@/utils/request";
// 获取产品列表
export function getProducPagetList(params){
    return request.get("/product/pageList", { params });
}

// 删除多选
export function deleteProductList(productIds){
    return request.delete("/product/deleteProductList", { data:productIds });
}

//添加商品
export function addProduct(product){
    return request.post("/product/addProduct",  product );
}

//编辑商品
export function editProduct(product){
    return request.post("/product/editProduct",  product );
}

//查询单个商品
export function getProductById(params){
    return request.get("/product/getProductById",  {params} );
}
